package com.spic.business.alarm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 告警桩对象 alarm_device
 *
 * @author spic
 * @date 2022-07-01
 */
public class AlarmDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 报警人
     */
    @Excel(name = "报警人")
    private String alarmPeople;

    /**
     * 报警时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alarmTime;

    /**
     * 报警内容
     */
    private String alarmContent;

    /**
     * 报警装名称
     */
    @Excel(name = "报警装名称")
    private String alarmDeviceType;

    /**
     * 报警地点
     */
    @Excel(name = "报警地点")
    private String alarmPlace;

    /**
     * 接警人
     */
    @Excel(name = "接警人")
    private String alarmCalled;

    /**
     * 处理措施
     */
    private String alarmMeasure;

    /**
     * 事件类型
     */
    @Excel(name = "事件类型")
    private String eventType;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAlarmPeople(String alarmPeople) {
        this.alarmPeople = alarmPeople;
    }

    public String getAlarmPeople() {
        return alarmPeople;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmContent(String alarmContent) {
        this.alarmContent = alarmContent;
    }

    public String getAlarmContent() {
        return alarmContent;
    }

    public void setAlarmDeviceType(String alarmDeviceType) {
        this.alarmDeviceType = alarmDeviceType;
    }

    public String getAlarmDeviceType() {
        return alarmDeviceType;
    }

    public void setAlarmPlace(String alarmPlace) {
        this.alarmPlace = alarmPlace;
    }

    public String getAlarmPlace() {
        return alarmPlace;
    }

    public void setAlarmCalled(String alarmCalled) {
        this.alarmCalled = alarmCalled;
    }

    public String getAlarmCalled() {
        return alarmCalled;
    }

    public void setAlarmMeasure(String alarmMeasure) {
        this.alarmMeasure = alarmMeasure;
    }

    public String getAlarmMeasure() {
        return alarmMeasure;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getEventType() {
        return eventType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("alarmPeople", getAlarmPeople())
                .append("alarmTime", getAlarmTime())
                .append("alarmContent", getAlarmContent())
                .append("alarmDeviceType", getAlarmDeviceType())
                .append("alarmPlace", getAlarmPlace())
                .append("alarmCalled", getAlarmCalled())
                .append("alarmMeasure", getAlarmMeasure())
                .append("eventType", getEventType())
                .toString();
    }
}
